package com.cu.jiekong.frame.model;

import java.io.Serializable;

/**
 * 返回类
 */
public class Ret implements Serializable {

    /**
     * 状态
     */
    private boolean status;

    /**
     * 状态码
     */
    private String code;

    /**
     * 信息
     */
    private String message;

    /**
     * 内容
     */
    private Object data;


    public Ret(boolean status) {
        this.status = status;
    }

    public Ret(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public Ret(String code, String message, Object data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }

    public Ret(Object data) {
        this.data = data;
    }

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
